import React from "react";
import "./style3.css";
const App3 = () => {
  const changeTheme = (theme) => {
    document.body.classList = theme;
  };
  return (
    <div className="content">
      <div className="header">
        <h1>哈哈哈哈哈哈</h1>

        <button onClick={() => changeTheme("drak")}>黑夜</button>
        <button onClick={() => changeTheme("light")}>白天</button>
        <button onClick={() => changeTheme("sgp")}>sgp</button>
      </div>


      <div className="con">
        <h3>daolwnqkw </h3>
      </div>

    </div>
  );
};

export default App3;
